device_event_summary
Configuration for devices events summary resource.
Read/write properties
id<String>
Id is system generated key.
device_ip_address<String>
ip_address of the device..
hostname<String>
Assign hostname to managed device, if this is not provided, name will be set as host name .
Minimum length = 1
Maximum length = 256
type<String>
Device Family.
Minimum length = 1
Maximum length = 64
instance_id<String>
Instance ID of the managed device..
Minimum length = 1
Maximum length = 256
Read only properties
total_major_events<Integer>
Total number of major events city wise..
total_critical_events<Integer>
Total number of Critical events city wise..
instance_state<String>
State of device, UP only if device accessible.
total_events<Integer>
Total number of events.
Operations
NOTE: In request payload, Mandatory parameters are marked red and bold.
The following parameters can be used in the nitro request :
onerror <String_value>
Use this parameter to set the onerror status for nitro request. Applicable only for bulk requests.
Default value: EXIT
Possible values = EXIT, CONTINUE
URL:https://<MGMT-IP>/nitro/v2/config/device_event_summary
Query-parameters:
filter
https://<MGMT-IP>/nitro/v2/config/device_event_summary?filter=property-name1:property-value1,property-name2:property-value2
Use this query-parameter to get the filtered set of device_event_summary resources configured on the system. You can set a filter on any property of the resource.
pagesize=#no&pageno=#no
https://<MGMT-IP>/nitro/v2/config/device_event_summary?pagesize=#no&pageno=#no
Use this query-parameter to get the device_event_summary resources in chunks.
count
https://<MGMT-IP>/nitro/v2/config/device_event_summary?count=yes
Use this query-parameter to get the count of device_event_summary resources.
HTTPS Method:GET
Request Headers:
Accept:application/json
X-NITRO-USER:username_value<String>
X-NITRO-PASS:password_value<String>
or
Cookie:NITRO_AUTH_TOKEN=token_value<String>
Response:
HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx
Response Headers:
Content-Type:application/json
Response Payload:JSON
{ "errorcode": 0, "message": "Done", "severity": <String_value>, "device_event_summary":[{
"total_major_events":<Integer_value>,
"id":<String_value>,
"total_critical_events":<Integer_value>,
"device_ip_address":<String_value>,
"hostname":<String_value>,
"instance_state":<String_value>,
"type":<String_value>,
"total_events":<Integer_value>,
"instance_id":<String_value>}]}
URL:https://<MGMT-IP>/nitro/v2/config/device_event_summary/id_value<String>
HTTPS Method:GET
Request Headers:
Accept:application/json
X-NITRO-USER:username_value<String>
X-NITRO-PASS:password_value<String>
or
Cookie:NITRO_AUTH_TOKEN=token_value<String>
Response:
HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx
Response Headers:
Content-Type:application/json
Response Payload:JSON
{ "errorcode": 0, "message": "Done", "severity": <String_value>, "device_event_summary":[{
"total_major_events":<Integer_value>,
"id":<String_value>,
"total_critical_events":<Integer_value>,
"device_ip_address":<String_value>,
"hostname":<String_value>,
"instance_state":<String_value>,
"type":<String_value>,
"total_events":<Integer_value>,
"instance_id":<String_value>}]}